package com.ruoyi.article.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.article.mapper.ArticleTagReferencedMapper;
import com.ruoyi.article.domain.ArticleTagReferenced;
import com.ruoyi.article.service.IArticleTagReferencedService;

/**
 * 文章标签 Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-02-04
 */
@Service
public class ArticleTagReferencedServiceImpl implements IArticleTagReferencedService 
{
    @Autowired
    private ArticleTagReferencedMapper articleTagReferencedMapper;

    /**
     * 查询文章标签 
     * 
     * @param atrId 文章标签 主键
     * @return 文章标签 
     */
    @Override
    public ArticleTagReferenced selectArticleTagReferencedByAtrId(Long atrId)
    {
        return articleTagReferencedMapper.selectArticleTagReferencedByAtrId(atrId);
    }

    /**
     * 查询文章标签 列表
     * 
     * @param articleTagReferenced 文章标签 
     * @return 文章标签 
     */
    @Override
    public List<ArticleTagReferenced> selectArticleTagReferencedList(ArticleTagReferenced articleTagReferenced)
    {
        return articleTagReferencedMapper.selectArticleTagReferencedList(articleTagReferenced);
    }

    /**
     * 新增文章标签 
     * 
     * @param articleTagReferenced 文章标签 
     * @return 结果
     */
    @Override
    public int insertArticleTagReferenced(ArticleTagReferenced articleTagReferenced)
    {
        return articleTagReferencedMapper.insertArticleTagReferenced(articleTagReferenced);
    }

    /**
     * 修改文章标签 
     * 
     * @param articleTagReferenced 文章标签 
     * @return 结果
     */
    @Override
    public int updateArticleTagReferenced(ArticleTagReferenced articleTagReferenced)
    {
        return articleTagReferencedMapper.updateArticleTagReferenced(articleTagReferenced);
    }

    /**
     * 批量删除文章标签 
     * 
     * @param atrIds 需要删除的文章标签 主键
     * @return 结果
     */
    @Override
    public int deleteArticleTagReferencedByAtrIds(Long[] atrIds)
    {
        return articleTagReferencedMapper.deleteArticleTagReferencedByAtrIds(atrIds);
    }

    /**
     * 删除文章标签 信息
     * 
     * @param atrId 文章标签 主键
     * @return 结果
     */
    @Override
    public int deleteArticleTagReferencedByAtrId(Long atrId)
    {
        return articleTagReferencedMapper.deleteArticleTagReferencedByAtrId(atrId);
    }
}
